package 函数表达式

fun main() {
    /*val blessingFuntion = {
        val holiday = "New year."
        "Happy $holiday"
    }*/

    /* val blessingFuntion: (String, Int) -> String = { name, year ->
         val holiday = "New year."
         "$name Happy $holiday $year"
     }*/

    val blessingFuntion = { name: String, year: Int ->
        val holiday = "New year."
        "$name Happy $holiday $year"
    }

    println(blessingFuntion("John", 2027));
}